import './style.css'
import { createApp } from 'vue'
import App from '@/App.vue'
import router from 'router'

// 引入ElementPlus
import ElementPlus from "element-plus"
import "element-plus/dist/index.css"
// import "element-plus/theme-chalk/dark/css-vars.css"
import locale from "element-plus/es/locale/lang/zh-cn"
import TuiPlus from "@wocwin/t-ui-plus"
import "@wocwin/t-ui-plus/lib/style.css"
import 'element-plus/dist/index.css';

// 创建应用
const app = createApp(App)

// 注册ElementPlus
app.use(ElementPlus, {
  locale // 语言设置
  // size: Cookies.get('size') || 'medium' // 尺寸设置
})

// 注册TuiPlus
app.use(TuiPlus)

// 注册路由
app.use(router)

// 挂载应用
app.mount('#app')
